package com.yhb.service;

import com.yhb.model.Card;
import com.yhb.model.ChannelFlow;
import com.yhb.model.Plan;
import com.yhb.model.User;

import java.math.BigDecimal;
import java.util.List;

public interface ChannelFlowService {
    Plan aiGenerateFlows(User user, String cardId, BigDecimal totalAmount, BigDecimal remainingAmount);

    BigDecimal calculateCommission(User user, Card card, BigDecimal amount);
    BigDecimal calculateAmountWithinCommission(User user, Card card, BigDecimal amount);
    BigDecimal calculateRemitFee(User user, BigDecimal amount, RemitType type);
    BigDecimal getCommissionRate(User user, Card card);

    String getPosCommission(User.VipType vipType);
    enum RemitType {
        RAPID, // 快收
        SCHEDULED // 好还 好收等
    }
}
